<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>浮动布局</title>
  <style>
    .box {
      width: 1200px;
      height: 460px;
      background-color: pink;
      margin: 0 auto;
    }
    .left {
      height: 460px;
      width: 230px;
      background-color: purple;
      float: left;
    }
    .right {
      width: 970px;
      height: 460px;
      background-color: skyblue;
      float: right;
    }
  </style>
</head>
<body>
    <div class="box">
        <div class="left">左侧</div>
        <div class="right">右侧</div>
    </div>
</body>
</html>